package pl.gladiator.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import pl.gladiator.model.User;

@Controller
@RequestMapping("/flow")
public class FlowController {

	@RequestMapping(value = "/showAdmin")
	public String showAdmin() {
		return "adminPanel";
	}

	@RequestMapping(method = RequestMethod.GET)
	public ModelAndView showIndex() {
		ModelMap map = new ModelMap();
		User user = new User();
		map.put("user", user);
		return new ModelAndView("start", map);
	}
	
	@RequestMapping(value = "/training")
	public String training() {
		return "training";
	}

}
